package com.wanjia.seal.manager.controller;


import com.wanjia.seal.manager.annotation.LoginToken;
import com.wanjia.seal.manager.entity.BussinessChannel;
import com.wanjia.seal.manager.entity.ChequeTypeTB;
import com.wanjia.seal.manager.mapper.BussinessChannelMapper;
import com.wanjia.seal.manager.utils.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("/api")
@Api(tags = "BussinessChannel")
public class BussinessChannelController extends BaseController {


    @Autowired
    BussinessChannelMapper bussinessChannelMapper;

    @ResponseBody
    @GetMapping("/BussinessChannel")
    @ApiOperation(value = "查询所有", notes = "查询是否成功")
    @LoginToken
    public JsonResult<List<BussinessChannel>> BussinessChannelSelect() {
        List<BussinessChannel> bussinessChannels = bussinessChannelMapper.getBussinessChannel();
        return new JsonResult<>(OK, bussinessChannels);
    }
}